/**
 * Created by chengke on 2018/2/28.
 */

let Sequelize = require('sequelize');

let sequelize = require('./db.js').webAccount;

module.exports = sequelize.define('keyword_binding', {
    id: {
        comment: '主键',
        primaryKey: true,
        type: Sequelize.INTEGER
    },
    channelId: {
        type: Sequelize.STRING,
        field: 'channel_id'
    },
    subchannelId: {
        type: Sequelize.INTEGER,
        field: 'subchannel_id'
    },
    keywordId: {
        type: Sequelize.INTEGER,
        field: 'keyword_id'
    }
}, {
    underscored: true,
    freezeTableName: true
});